home *** CD-ROM | disk | FTP | other *** search
/ Star Festival... a Return to Japan / Star Festival... a Return to Japan.iso / pc / STARFESTIVAL / 05p4.dir / 00001.ls next >
Encoding:
Text File  |  1999-04-27  |  2.8 KB  |  99 lines

  1. on startMovie
  2.   global gKnobSprite, gSendMovie, gCursorReady, gKnobState, gplaybtnsprite, gFNEngBtnSprite, gPcVidSprite
  3.   gplaybtnsprite = 0
  4.   gFNEngBtnSprite = 24
  5.   gPcVidSprite = 11
  6.   puppetSprite(gFNEngBtnSprite, 1)
  7.   puppetSprite(48, 1)
  8.   gCursorReady = 1
  9.   gKnobSprite = 14
  10.   gSendMovie = "05p4"
  11.   gKnobState = 1
  12.   puppetSprite(gKnobSprite, 1)
  13.   setUpKnob()
  14.   sprite(34).visible = 0
  15.   set the mouseDownScript to EMPTY
  16.   set the mouseUpScript to EMPTY
  17. end
  18.  
  19. on stopMovie
  20.   global gplaybtnsprite, gFNEngBtnSprite, zeoIdle
  21.   puppetSprite(gFNEngBtnSprite, 0)
  22.   stopmovieqt()
  23.   gplaybtnsprite = 23
  24.   zeoIdle = 0
  25.   when timeOut then nothing
  26. end
  27.  
  28. on idle
  29.   global gCursorReady
  30.   if gCursorReady = 1 then
  31.     cursor(200)
  32.     checkCursors()
  33.     set the locH of sprite 48 to the mouseH
  34.     set the locV of sprite 48 to the mouseV
  35.     updateStage()
  36.   end if
  37.   qtidle()
  38. end
  39.  
  40. on checkCursors
  41.   global gMagCursor, zeoIdle
  42.   gMagCursor = "magCursor"
  43.   setzeoIdle()
  44.   set the castNum of sprite 48 to the number of member "curs1"
  45.   if the castNum of sprite 5 and (rollOver(5) and not zeoIdle) then
  46.     set the castNum of sprite 48 to the number of member gMagCursor
  47.   end if
  48.   if the castNum of sprite 8 and rollOver(8) then
  49.     set the castNum of sprite 48 to the number of member "deMagCursor"
  50.   end if
  51.   if the castNum of sprite 10 and (rollOver(10) and not zeoIdle) then
  52.     set the castNum of sprite 48 to the number of member "hotCursor"
  53.   end if
  54.   if the castNum of sprite 12 and rollOver(12) then
  55.     set the castNum of sprite 48 to the number of member "hotCursor"
  56.   end if
  57.   repeat with i = 15 to 17
  58.     if rollOver(i) then
  59.       set the castNum of sprite 48 to the number of member "hotCursor"
  60.     end if
  61.   end repeat
  62.   if rollOver(18) then
  63.     if zeoIdle then
  64.       set the castNum of sprite 48 to the number of member "nonCursor"
  65.     else
  66.       set the castNum of sprite 48 to the number of member "hotCursor"
  67.     end if
  68.   end if
  69.   repeat with i = 30 to 32
  70.     if rollOver(i) then
  71.       set the castNum of sprite 48 to the number of member "hotCursor"
  72.     end if
  73.   end repeat
  74.   if rollOver(34) and (sprite(34).visible = 1) and not zeoIdle then
  75.     set the castNum of sprite 48 to the number of member "hotCursor"
  76.   end if
  77.   repeat with i = 40 to 41
  78.     if rollOver(i) and not zeoIdle then
  79.       set the castNum of sprite 48 to the number of member "hotCursor"
  80.     end if
  81.   end repeat
  82.   if rollOver(42) then
  83.     set the castNum of sprite 48 to the number of member "hotCursor"
  84.   end if
  85.   if the castNum of sprite 47 and rollOver(47) then
  86.     set the castNum of sprite 48 to the number of member "hotCursor"
  87.   end if
  88. end
  89.  
  90. on setzeoIdle
  91.   global gPcVidSprite, zeoIdle
  92.   zeoIdle = 0
  93.   if the memberNum of sprite gPcVidSprite > 0 then
  94.     if sprite(gPcVidSprite).movieRate > 0 then
  95.       zeoIdle = 1
  96.     end if
  97.   end if
  98. end
  99.